package com.github.edu.repair.web.controller;

import com.github.edu.repair.web.service.UploadFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartHttpServletRequest;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-28
 */
@RestController
@RequestMapping("/uc/upload")
public class UploadFileController extends BaseController {

    @Autowired
    private UploadFileService service;

    @PostMapping("/layer/input/image")
    public String uploadLayerImage(MultipartHttpServletRequest request){

        return service.uploadLayerImage(request);
    }

}
